#!/usr/bin/env python
# @FileName :homework.py.py
# @Time :2024/1/19 21:11
# @Author :wanghai

# method 1
string = input("请输入\n")
str_lower = string.lower()
if len(str_lower) % 2 :
    length = len(str_lower) // 2
else :
    length = int(len(str_lower) / 2)
for i in range(length-1) :
    flag = 0
    if str_lower[i] != str_lower[-1-i] :
        flag = 1
        break
if flag == 0 :
    print("输入为回文")
else :
    print("输入不是回文")

# method 2
string = input("请输入\n")
string_conv = string[::-1]
if string == string_conv:
    print("输入为回文")
else:
    print("输入不为回文")